<!-- 模块说明 -->
<script setup>
import { ref } from "vue";
const add = (value) => {
  console.log(value, "价值");
};
const val = ref("");
</script>
<template>
  <div class="box">
    <p>首页</p>
    <!-- 这个v-model默认监听了一个事件update='fn1'和:value='val' -->
    <!-- <Input @enter="add" v-model="val"></Input>
    {{ val }} -->
    <Test v-model="val"></Test>{{ val }}
  </div>
</template>

<style lang="scss" scoped></style>
